
; (function (window, $) {
	/*
	$(function () {
		var baseUrl = "http://api.dev.rongsue.com";
		$.ajaxSetup({
			beforeSend: function (xhr, options) {
				// show loading

				// options.url = baseUrl + options.url;
				// add jwtToken header
				var tokenHeader = util.createAuthorizationTokenHeader();
				if (tokenHeader && tokenHeader.Authorization) {
					xhr.setRequestHeader("Authorization", tokenHeader.Authorization);
				}
			},
			complete: function (xhr, stat) {
				// hide loading
			},
			success: function (result, status, xhr) {
				console.log("==========ajax-log===========>", result);
			},
			error: function (jqXHR, textStatus, errorThrown) {
				switch (jqXHR.status) {
					case (500):
						alert("服务器系统内部错误");
						break;
					case (401):
						alert("未登录");
						window.location.href = "/login.html?redirect_uri=" + encodeURIComponent(window.location.pathname);
						break;
					case (403):
						alert("无权限执行此操作");
						window.location.href = "/login.html?redirect_uri=" + encodeURIComponent(window.location.pathname);
						break;
					case (408):
						alert("请求超时");
						break;
					default:
						alert("未知错误");
				}
			},
		});
	})*/

})(window, jQuery)
